package cn.myblog.ainblog.mapper;

import cn.myblog.ainblog.model.ReplyModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @author Dovaior
 * @Description 回复留言的mapper
 * @create 2021-05-10 22:00
 **/
@Repository
public interface ReplyMapper extends BaseMapper<ReplyModel> {
    /**
     * 查询指定留言的回复内容
     */
    String queryReplyContentByCommentId(Long commentId);

    /**
     * 删除指定留言的回复
     */
    int clearReplysByCommentId(Long commentId);

    int submitReplyChanges(Long commentId,String replyContent);
}
